import App from './App'
import store from './store/index.js'
import './style/font-awesome-4.7.0/css/font-awesome.min.css'
import { createSSRApp } from 'vue'



App.mpType = 'app'

/* http请求遮罩层 */
uni.addInterceptor('request', {
	invoke: ()=>{
		uni.showLoading({
			title: '加载中...',
			mask: true
		})
	},
	success: ()=>{
		uni.hideLoading()
	},
	fail: ()=>{
		uni.hideLoading()
	},
})

export function createApp() {
   const app = createSSRApp(App)
	 app.use(store);
   return {
      app
   }
}
